package {
	import de.wellenblau.objectGetter.imgGetter;
	import de.wellenblau.objectGetter.xmlGetter;
	
	import flash.display.Bitmap;
	import flash.display.Sprite;

	[SWF(width="800", height="800", backgroundColor="0xCCCCCC", frameRate="30")]
	public class getterTest extends Sprite
	{
		
		public function getterTest()
		{
			//get xml file
			new xmlGetter(this,xmlHandle,"feed.xml");
			
			//get image file and resize it
			new imgGetter(this,imgHandle,"bild.jpg",[100,40],false,100,200,0x00ff00);

		}
		
		public function xmlHandle(x:XML):void{
			//xml ready
		}
		
		public function imgHandle(b:Bitmap,data:Array):void{
			//image ready
			
			b.x = data[0];
			b.y = data[1];
			addChild(b);
		}
	}
}